home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Tools 3
/
Amiga Tools 3.iso
/
rexx
/
format.mrbk
< prev
next >
Wrap
Text File
|
1991-01-12
|
1KB
|
70 lines
/* format.mrbk */
/* This ARexx script adjusts MRBackup's formatting option setting. */
signal on ERROR
signal on BREAK_C
options results
if ~(Show('P', 'MRBackup_#1')) then do
say "You must run MRBackup first. With a little work, you could"
say "get this ARexx script to do it for you."
exit 1
end
address "MRBackup_#1"
poptofront
getformatting
say "Current formatting option: " || result
say "Setting formatting to None"
setformatting "None"
getformatting
if result ~= "None" then do
say "setformatting None failed; rc = " || rc
exit rc
end
call Delay(50)
say "Setting formatting to Normal"
setformatting "Normal"
getformatting
if result ~= "Normal" then do
say "setformatting Normal failed; rc = " || rc
exit rc
end
call Delay(50)
say "Setting formatting to Quick"
setformatting "Quick"
getformatting
if result ~= "Quick" then do
say "setformatting Quick failed; rc = " || rc
exit rc
end
exit 0
/*------------------------------------------------------------------*/
break_c:
say "*** Control-C recieved. Stopped by user. ***"
exit 5
/*------------------------------------------------------------------*/
error:
say "Error"
exit 6
/*------------------------------------------------------------------*/